From 874dc4bae5a98199b5c4cc6426da299949df6dcd Mon Sep 17 00:00:00 2001 From: Zhi-Jun You Date: Tue, 30 Sep 2025 10:51:28 +0800 Subject: [PATCH] luci-app-usteer: fix menu showing on login screen Currently menu entry is always shown even at the login screen. Fix this by setting acl dependency. Also fix the indent. Signed-off-by: Zhi-Jun You --- .../share/luci/menu.d/luci-app-usteer.json | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/applications/luci-app-usteer/root/usr/share/luci/menu.d/luci-app-usteer.json b/applications/luci-app-usteer/root/usr/share/luci/menu.d/luci-app-usteer.json index 39ce0ff9d7..ffa4c398a6 100644 --- a/applications/luci-app-usteer/root/usr/share/luci/menu.d/luci-app-usteer.json +++ b/applications/luci-app-usteer/root/usr/share/luci/menu.d/luci-app-usteer.json @@ -1,10 +1,13 @@ { - "admin/network/usteer": { - "title": "Usteer", - "order": 80, - "action": { - "type": "view", - "path": "usteer/usteer" - } - } + "admin/network/usteer": { + "title": "Usteer", + "order": 80, + "action": { + "type": "view", + "path": "usteer/usteer" + }, + "depends": { + "acl": [ "luci-app-usteer" ] + } + } } -- 2.30.2